package com.storeroompda.ui.changestore;

import com.storeroompda.base.present.BasePresenter;
import com.storeroompda.bean.ItemBean;
import com.storeroompda.entity.BillCodeInfo;
import java.util.List;

public class ChangeStorePresent extends BasePresenter<ChangeStoreModel, ChangeStoreView> implements ChangeStoreModel.CallBack {
    public void showBill() {
        model.showbill(this);
    }

    public void addBill(BillCodeInfo bi) {
        model.addbill(this,bi);
    }

    public void deleteBill(BillCodeInfo bi) {
        model.deletebill(this,bi);
    }

    public void showdlist() {
        model.showd(this);
    }

    public void addCode(BillCodeInfo bi, String code) {
        model.addcode(this,bi,code);
    }

    public void delCode(BillCodeInfo bi,String code) {
        model.deletecode(this,bi,code);
    }

    @Override
    public void onshowList(List<BillCodeInfo> list) {
        view.showList(list);
    }

    @Override
    public void onnotifyList(List<BillCodeInfo> list) {
        view.notifyList(list);
    }

    @Override
    public void onshowState(String str) {
        view.showState(str);
    }

    @Override
    public void onshowd(List<ItemBean> list) {
        view.showDlist(list);
    }
}


